package p270jp.pxv.android.novelText.domain.model;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.p024v4.media.C0261e;
import com.google.android.gms.ads.C2047a;
import p325m0.MutabilityOwnership;

/* compiled from: Chapter.kt */
/* renamed from: jp.pxv.android.novelText.domain.model.Chapter */
/* loaded from: classes2.dex */
public final class Chapter implements Parcelable {

    /* renamed from: id */
    private final String f19266id;
    private final String title;
    public static final Parcelable.Creator<Chapter> CREATOR = new C4306a();
    public static final int $stable = 8;

    /* compiled from: Chapter.kt */
    /* renamed from: jp.pxv.android.novelText.domain.model.Chapter$a */
    /* loaded from: classes2.dex */
    public static final class C4306a implements Parcelable.Creator<Chapter> {
        @Override // android.os.Parcelable.Creator
        public final Chapter createFromParcel(Parcel parcel) {
            MutabilityOwnership.m3745m(parcel, "parcel");
            return new Chapter(parcel.readString(), parcel.readString());
        }

        @Override // android.os.Parcelable.Creator
        public final Chapter[] newArray(int i) {
            return new Chapter[i];
        }
    }

    public Chapter(String str, String str2) {
        MutabilityOwnership.m3745m(str, "id");
        MutabilityOwnership.m3745m(str2, "title");
        this.f19266id = str;
        this.title = str2;
    }

    public static /* synthetic */ Chapter copy$default(Chapter chapter, String str, String str2, int i, Object obj) {
        if ((i & 1) != 0) {
            str = chapter.f19266id;
        }
        if ((i & 2) != 0) {
            str2 = chapter.title;
        }
        return chapter.copy(str, str2);
    }

    public final String component1() {
        return this.f19266id;
    }

    public final String component2() {
        return this.title;
    }

    public final Chapter copy(String str, String str2) {
        MutabilityOwnership.m3745m(str, "id");
        MutabilityOwnership.m3745m(str2, "title");
        return new Chapter(str, str2);
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    @Override // java.lang.Object
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Chapter)) {
            return false;
        }
        Chapter chapter = (Chapter) obj;
        return MutabilityOwnership.m3749h(this.f19266id, chapter.f19266id) && MutabilityOwnership.m3749h(this.title, chapter.title);
    }

    public final String getId() {
        return this.f19266id;
    }

    public final String getTitle() {
        return this.title;
    }

    @Override // java.lang.Object
    public int hashCode() {
        return this.title.hashCode() + (this.f19266id.hashCode() * 31);
    }

    @Override // java.lang.Object
    public String toString() {
        StringBuilder c = C0261e.m12042c("Chapter(id=");
        c.append(this.f19266id);
        c.append(", title=");
        return C2047a.m8800b(c, this.title, ')');
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        MutabilityOwnership.m3745m(parcel, "out");
        parcel.writeString(this.f19266id);
        parcel.writeString(this.title);
    }
}
